home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 482 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.2 KB  |  54 lines

  1. Path: helios.ffi.no!usenet
  2. From: peh@norconnect.no (Per Espen Hagen)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: MUFS and filename length
  5. Date: 11 Jan 1996 18:53:02 GMT
  6. Organization: Forsvarets Forskningsinstitutt
  7. Message-ID: <1776.6584T1123T1030@norconnect.no>
  8. References: <4cr4hb$21t@glitnir.ifi.uio.no> <811.6581T1409T249@norconnect.no> <4d2hr0$oco@glitnir.ifi.uio.no>
  9. NNTP-Posting-Host: modem3.ffi.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. Uwe Sigurd Valentin Kubosch <uwek@ifi.uio.no> wrote:
  13.  
  14. >> Apparently not... 30 characters here.  But if you create/rename a file from
  15. >> *Workbench*, it will be limited to 25, to make room for a ".info"
  16. >> extension.  That's the case for FFS as well.
  17. >
  18. > I thought the filenames did not have any limitation except for a total
  19. > pathnamelength of 128 characters...?
  20.  
  21. No, there are actually two limitations.  One is imposed by dos.library:
  22.  
  23. | struct FileInfoBlock {
  24. |    LONG   fib_DiskKey;
  25. |    LONG   fib_DirEntryType;  /* Type of Directory. If < 0, then a plain file.
  26. |                               * If > 0 a directory */
  27. |    char   fib_FileName[108]; /* Null terminated. Max 30 chars used for now */
  28. |    LONG   fib_Protection;    /* bit mask of protection, rwxd are 3-0.      */
  29. |    LONG   fib_EntryType;
  30. |    LONG   fib_Size;          /* Number of bytes in file */
  31. |    LONG   fib_NumBlocks;     /* Number of blocks in file */
  32. |    struct DateStamp fib_Date;/* Date file last changed */
  33. |    char   fib_Comment[80];   /* Null terminated comment associated with file */
  34. |    UWORD  fib_OwnerUID;      /* owner's UID */
  35. |    UWORD  fib_OwnerGID;      /* owner's GID */
  36. |    char   fib_Reserved[32];
  37. | };
  38.  
  39. So 108 characters max for the file name.  But FFS (and muFS, and many
  40. programs like dir or list) have another limit of 30 characters.  AFAIK, AFS
  41. does not have this 30-character limitation.  Working around the 108-char
  42. limit is much more of a problem...
  43.  
  44. > Only 30 characters?
  45.  
  46. With FFS or muFS, yes.  But if you didn't discover this limit until now,
  47. it's not *that* much of a problem, is it...?
  48.  
  49. --
  50. Per Espen Hagen    //    Senior Scientist ╖ Image Processing Group ╖ FFI
  51. peh@ffi.no ╖ http://www.norconnect.no/~peh/ ╖ Tel. +47 63807653/22327351
  52.                 \X/
  53.  
  54.